#ifndef __PIXEL_BITMAP_H__
#define __PIXEL_BITMAP_H__

#include "jpeg/jpegdecoder.h"
#include "../renderobj.h"

class PixelBitmap : public RenderObj
{
public:
	PixelBitmap(string strPath, Point pos, float z);
	~PixelBitmap();

private:
	unsigned int LoadFile(string strPath, Point pos, float z);
	ImageData GetImageData(string strJpegPath);
	unsigned int GetDrawList(ImageData& data, Point pos, float z);

	void OnRender(float differTime);

private:
	unsigned int m_texid;
};

#endif